/** When your routing table is too long, you can split it into small modules**/
import pageComponentName from '@/config/page-component-name'
import Layout from '@/layout/index.vue'

const factoryRouter = [
  {
    path: '/factory',
    name: 'factory',
    component: Layout,
    meta: { title: '返厂管理', icon: 'Van', keepAlive: true },
    children: [
      {
        path: 'callback',
        component: () => import('@/views/callback/index.vue'),
        name: 'orderCallback',
        meta: {
          title: '返厂管理',
          keepAlive: true,
          componentName: pageComponentName.returnFactoryManager.returnFactoryManager,
        },
      },
      {
        path: 'cdetail',
        component: () => import('@/views/callback/cdetail/index.vue'),
        name: 'cDetail',
        meta: {
          title: '返厂详细',
          keepAlive: true,
          componentName: pageComponentName.returnFactoryManager.returnFactoryDetail,
        },
        hidden: true,
      },
    ],
  },
]

export default factoryRouter
